
<%@page import="com.newbsd.web.maventest.pojo.Order"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" 
   pageEncoding="UTF-8"%>
   
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()+ path + "/";
%>



<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>我的订单</title>
	<link rel="stylesheet" type="text/css" href="js/util/easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="js/util/easyui/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="js/util/easyui/themes/color.css">
    <link rel="stylesheet" type="text/css" href="js/util/easyui/demo/demo.css">
    <script type="text/javascript" src="js/util/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="js/util/easyui/jquery.easyui.min.js"></script>
</head>
<style type="text/css">
	table {
		border: 2px #6fba26 solid;
		margin: 0 auto;
	}
	td,th {
		border: 1px #CCCCCC solid;
		background-color:#A3D1D1;
	}
	p {
	  text-align:center;
	}
	.b a.alterticket{
	background-color:#6fba26;
	padding:10px;
	position:relative;
	font-family: 'Open Sans', sans-serif;
	font-size:12px;
	text-decoration:none;
	color:#fff;
	background-image: linear-gradient(bottom, rgb(100,170,30) 0%, rgb(129,212,51) 100%);
	box-shadow: inset 0px 1px 0px #b2f17f, 0px 6px 0px #3d6f0d;
	border-radius: 5px;
	}
	.b a.cancelticket{
	background-color:#6fba26;
	padding:10px;
	position:relative;
	font-family: 'Open Sans', sans-serif;
	font-size:12px;
	text-decoration:none;
	color:#fff;
	background-image: linear-gradient(bottom, rgb(100,170,30) 0%, rgb(129,212,51) 100%);
	box-shadow: inset 0px 1px 0px #b2f17f, 0px 6px 0px #3d6f0d;
	border-radius: 5px;
	}
	.b a.back{
	background-color:#6fba26;
	padding:10px;
	position:relative;
	font-family: 'Open Sans', sans-serif;
	font-size:12px;
	text-decoration:none;
	color:#fff;
	background-image: linear-gradient(bottom, rgb(100,170,30) 0%, rgb(129,212,51) 100%);
	box-shadow: inset 0px 1px 0px #b2f17f, 0px 6px 0px #3d6f0d;
	border-radius: 5px;
	}
	h2 {
	text-align:center;
	color:#6fba26;
	}
</style>
<body>
  <form action="" method="post">
  	<table >
  		<h2>我的订单</h2>
  	<tr>
  		<th>乘客姓名</th>
  		<th>身份证号</th>
  		<th>订单号</th>
  		<th>票号</th>
  		<th>车次</th>
  		<th>票价</th>
  		<th>起始站</th>
  		<th>终点站</th>
  		<th>支付状态</th>
  		<th>出票状态</th>
  	</tr>
  
  	<tr>
  	<td>${username}</td>
  	<td>${cert}</td>
  	<td>${orderid}</td>
  	<td>${ticketid}</td>
  	<td>${trainno}</td>
  	<td>${price}</td>
  	<td>${origin}</td>
  	<td>${destination}</td>
  	<td>${pstatus}</td>
  	<td>${cstatus}</td>
  	</tr>
  	   <!-- 分页 -->
  	<c:forEach var="list" items="${page.data}">
            <tr>
              <td align="center" class="altbg2"><input name="item" type="checkbox" id="item" value="${list.user_id}" ></td>
                <td align="center" class="altbg2">
                    ${list.username}
                </td>
                <td class="altbg2" align="center">
                    ${list.user_id} 
                </td>
                <td class="altbg2" align="center">
                </td>
            </tr>

        </c:forEach>


<tr><td class="altbg2" colspan="7" rowspan="2" align="right">
                总共【${page.totalPage}】页 &nbsp;&nbsp;${page.pageNo}/${page.totalPage}&nbsp;&nbsp; <a href="zcUserServlet?method=showPage&pageNo=1">首页</a> <c:choose>
                    <c:when test="${requestScope.page.pageNo > 1}">
                        <a href="ordersController?method=showPage&pageNo=${page.pageNo-1}">上一页</a>
                    </c:when>
                    <c:otherwise>
                        上一页
                    </c:otherwise>
                </c:choose>

                <c:choose>
                    <c:when test="${page.pageNo < page.totalPage}">
                        <a href="ordersController?method=showPage&pageNo=${page.pageNo+1}">下一页</a>
                    </c:when>
                    <c:otherwise>
                        下一页
                    </c:otherwise>
                </c:choose>
                  <a href="ordersController?method=showPage&pageNo=${page.totalPage}">尾页</a>          </td>
            </tr>
  	
  	
  	 </table>
  	 <br/>
  	<p class="b">
		<a href="" class="alterticket">改票</a>
		<a href="" class="cancelticket">退票</a>	 
		<a href="" class="back">返回</a>	 
       </p>
       
  </form>
</body>
</html>